<template>
    <div id="nav-menu">
        <el-menu router background-color="#242f42" active-text-color="#409EFF" :default-active="activeIndex" mode="horizontal">
            <el-menu-item :index="'/TaskMangeList'">批次管理</el-menu-item>
			<el-menu-item :index="'/TaskRejectList'">驳回任务</el-menu-item>
            <el-menu-item :index="'/AuditList'">任务审核</el-menu-item>
            <el-menu-item :index="'/constant'">常量管理</el-menu-item>
            <el-menu-item :index="'/export'">导出数据</el-menu-item>
            <!-- <el-menu-item :index="'/settings'">设置</el-menu-item> -->
        </el-menu>
    </div>
</template>
<script>
export default {
    data() {
        return {
            activeIndex:'/TaskMangeList',
        }
    },
    watch:{
        $route(to,from){
            this.activeIndex = this.$route.meta.activeRouter;
        }
    },
    created() {
        this.activeIndex = this.$route.meta.activeRouter;
    },
    methods:{
    }
}
</script>
<style scoped>
#nav-menu{
    background: #242f42;
}
</style>
